doctype html
html(lang='en')
  head
    meta(charset='utf-8')
    meta(name='viewport', content='width=device-width, initial-scale=1.0')
    meta(name='description', content='')
    meta(name='author', content='Dashboard')
    meta(name='keyword', content='Dashboard, Bootstrap, Admin, Template, Theme, Responsive, Fluid, Retina')
    title=title
    // Bootstrap core CSS
    link(href='assets/css/bootstrap.css', rel='stylesheet')
    // external css
    link(href='assets/font-awesome/css/font-awesome.css', rel='stylesheet')
    // Custom styles for this template
    link(href='assets/css/style.css', rel='stylesheet')
    link(href='assets/css/style-responsive.css', rel='stylesheet')
    // HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries
    //if lt IE 9
      script(src='https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js')
      script(src='https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js')
  body(onload='load();')
    //
      **********************************************************************************************************************************************************
      MAIN CONTENT
      ***********************************************************************************************************************************************************
    #login-page
      .container
        form.form-login(action='index')
          h2.form-login-heading Login Success
          .login-wrap
            h2.form-login-heading Welcome~
            br
            h4.form-login-heading #{user.name}~
              span#jumpTo 2
            | 秒后自动跳转
    // js placed at the end of the document so the pages load faster
    script(src='assets/js/jquery.js')
    |     
    script(src='assets/js/bootstrap.min.js')
    // BACKSTRETCH
    // You can use an image of whatever size. This script will stretch to fit in any screen size.
    script(type='text/javascript', src='assets/js/jquery.backstretch.min.js')
    |     
    script.
      $.backstretch("assets/img/login-bg.jpg", {speed: 500});
    script.
      function countDown(secs,surl){     
        //alert(surl);     
        var jumpTo = document.getElementById('jumpTo');
        jumpTo.innerHTML=secs;  
        if(--secs>0){     
        setTimeout("countDown("+secs+",'"+surl+"')",1000);     
        }     
        else{       
        location.href=surl;     
        }     
      }
    script.
      countDown(2,'/index');